package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.CheckItem;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CheckItemMapper extends BaseMapper<CheckItem> {

    @Select("select tb_check_item.* from tb_check_group_item,tb_check_item where group_id=#{groupId} and tb_check_group_item.`item_id`=tb_check_item.`id`\n")
    public List<CheckItem>findByGroupId(@Param("groupId") Long groupId);
}
